<?php

/**
 * Registry Class
 * 
 * Contains the registry and get/set methods.
 */
class Pictet2_Registry {
	
	/**
	 * The registry. Holds anything you can put in an array.
	 *
	 * @var array
	 */
	static private $_registry = array();
	
	/**
	 * Empty private constructor because the whole class is static.
	 *
	 */
	private function __construct() {}
	
	/**
	 * Sets a registry entry.
	 *
	 * @param string $var The key for the registry entry.
	 * @param mixed $val The value to be held in the registry.
	 */
	static public function setRegistry($var, $val) {
		self::$_registry[$var] = $val;
	}
	
	/**
	 * Returns a registry entry.
	 *
	 * @param string $var The key for the registry entry.
	 * @return mixed
	 */
	static public function getRegistry($var) {
		return self::$_registry[$var];
	}

}